bitkeeper revision 1.1159.258.101 (426426c8abaWsVEeXnAJoNNGZ6ooyg)
authorryanh@us.ibm.com[iap10] <ryanh@us.ibm.com[iap10]>
Mon, 18 Apr 2005 21:29:44 +0000 (21:29 +0000)
committerryanh@us.ibm.com[iap10] <ryanh@us.ibm.com[iap10]>
Mon, 18 Apr 2005 21:29:44 +0000 (21:29 +0000)
[PATCH] [PATCH] xen: is_idle_task cleanup

The macro is_idle_task references d_flags which is only in struct
domain.  When WAKE_HISTO or BLOCKTIME_HISTO are defined (in schedule.c)
xen fails to compile with out the attached patch.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
BitKeeper/etc/logging_ok
xen/common/schedule.c

index f5ca0d0fc923fd7c2227f98df32bbc83e0a049a7..eff426464de6013491e6cd1c16862655874d12fe 100644 (file)
@@ -57,6 +57,7 @@ rn@wyvis.camb.intel-research.net
 rn@wyvis.research.intel-research.net
 rneugeba@wyvis.research
 rneugeba@wyvis.research.intel-research.net
+ryanh@us.ibm.com
 sd386@font.cl.cam.ac.uk
 shand@spidean.research.intel-research.net
 smh22@boulderdash.cl.cam.ac.uk
index 0470f9ee17b7e340fa2c6efd2021acbf7064c6be..0c437d883425fe38894afebcb8f10ae2ba6220cd 100644 (file)
@@ -364,7 +364,7 @@ static void __enter_scheduler(void)
     cleanup_writable_pagetable(prev);
 
 #if defined(WAKE_HISTO)
-    if ( !is_idle_task(next) && next->wokenup ) {
+    if ( !is_idle_task(next->domain) && next->wokenup ) {
         ulong diff = (ulong)(now - next->wokenup);
         diff /= (ulong)MILLISECS(1);
         if (diff <= BUCKETS-2)  schedule_data[cpu].hist[diff]++;
@@ -373,7 +373,7 @@ static void __enter_scheduler(void)
     next->wokenup = (s_time_t)0;
 #elif defined(BLOCKTIME_HISTO)
     prev->lastdeschd = now;
-    if ( !is_idle_task(next) )
+    if ( !is_idle_task(next->domain) )
     {
         ulong diff = (ulong)((now - next->lastdeschd) / MILLISECS(10));
         if (diff <= BUCKETS-2)  schedule_data[cpu].hist[diff]++;